import request from "@/utils/request";
// 项目获取所有数据
export function getproject(data) {
  return request({
    url: "/project",
    method: "get",
    data,
  });
}
// 项目添加数据
export function postproject(data) {
  return request({
    url: "/project",
    method: "post",
    data,
  });
}
// 项目修改数据
export function putproject(data) {
  return request({
    url: "/project",
    method: "put",
    data,
  });
}
// 删除数据
export function delproject(data) {
  return request({
    url: "/project",
    method: "delete",
    params: data,
  });
}
// 通过项目id 获取项目权限
export function getproclassify(data) {
  return request({
    url: "/auth",
    method: "patch",
    data,
  });
}
// 通过项目id 和人员id 获取到当前项目的字段
export function getclassify(data) {
  return request({
    url: "/project",
    method: "patch",
    params: data,
  });
}

// 提交字段的数据的金额
export function getClass(data) {
  return request({
    url: "/project",
    method: "patch",
    params: data,
  });
}

// 根据权限获取材料
export function getpermissionsMaterialss(data) {
  return request({
    url: "/materials",
    method: "put",
    data,
  });
}
